package com.springboot.service;

import com.springboot.domain.Student;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Service
public class TestServiceI {

    public List<Student> findStudent(){
        Student s1 = new Student();
        s1.setName("hqj123");s1.setSex("1");s1.setAge(23);s1.setBirthday(new Date());
        Student s2 = new Student();
        s2.setName("hjq321");s2.setSex("2");s2.setAge(24);s2.setBirthday(new Date());
        List<Student> list = new ArrayList<>();
        list.add(s1);list.add(s2);
        return list;
    }
}
